/**
 * fshows.com
 * Copyright (C) 2013-2025 All Rights Reserved.
 */
package com.function.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/**
 * 学生
 *
 * @author Mr-Wa
 * @date 2025/04/24
 */
@AllArgsConstructor
@Getter
public class Student {
    /**
     * 名称
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 性别: 0-女 1-男
     */
    private Integer sex;


    /**
     * 初始化数据
     *
     * @return {@link List }<{@link Student }>
     */
    public static List<Student> generateStudents() {
        Student student1 = new Student("Tom", 16, 0);
        Student student2 = new Student("Ami", 16, 0);
        Student student3 = new Student("张三", 18, 0);
        Student student4 = new Student("李四", 18, 1);
        Student student5 = new Student("王五", 18, 1);
        return Arrays.asList(student1, student2, student3, student4, student5);
    }
}